package org.bigjava.novelplatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName purchased_chapter
 */
@TableName(value ="purchased_chapter")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PurchasedChapter implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 书籍id
     */
    private Integer bookId;

    /**
     * 开始章节sort
     */
    private Integer beginChapter;

    /**
     * 结束章节sort
     */
    private Integer endChapter;

    /**
     * 更新时间，自动
     */
    private Date updateTime;

    /**
     * 逻辑删除
     0未删除；1删除
     */
    private Integer deleteState;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}